<@compress>
<form id="${form.id}" class="am-form ${form.className}"></form>
<script type="text/javascript">
   var callback = null;
   var param = [	
			   <#list form.lines as line> 
			      <#list line.fields as field>
			      {
					"type" : "${field.type}",
					"id" : "${field.id}",
					<#if field.className??>"className" : "${field.className}",</#if>
					<#if field.label??>"label" : "${field.label}",</#if>
					<#if field.placeholder??>"placeholder" : "${field.placeholder}",</#if>
					<#if field.name??>"name" : "${field.name}",</#if>
					<#if field.value??>"value" : "${field.value}",</#if>
					<#if field.text??>"text" : "${field.text}",</#if>
					<#if field.options??>"options" : "${field.options}",</#if>
					<#if field.row??>"row" : "${field.row}",</#if>
				  },
			      </#list>
			   </#list>	
				];
   createForm($(".${form.className}"), param, callback);
</script>
</@compress>